package com.situ.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * BE_Flow实体类
 * 
 * @author 
 *
 */
public class BeFlow {
	/***/
	private Integer id; 
	/***/
	private String StepName; 
	/***/
	private Integer DeptID; 
	/***/
	private Integer Type1; 
	/***/
	private Integer Type2; 
	/***/
	private Integer Type3; 
	/***/
	private Integer Type4; 
	/***/
	private Integer Type5; 
	/***/
	private Integer Type6; 
	/***/
	private Integer Type7; 
	/**
	 * 实例化
	 */
	public BeFlow() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public BeFlow(JSONObject obj) {
		this();
		if (obj.get("id") instanceof Number) {
			this.setId(((Number) obj.get("id")).intValue());
		}
		if (obj.get("StepName") instanceof String) {
			this.setStepName((String) obj.get("StepName"));
		}
		if (obj.get("DeptID") instanceof Number) {
			this.setDeptID(((Number) obj.get("DeptID")).intValue());
		}
		if (obj.get("Type1") instanceof Number) {
			this.setType1(((Number) obj.get("Type1")).intValue());
		}
		if (obj.get("Type2") instanceof Number) {
			this.setType2(((Number) obj.get("Type2")).intValue());
		}
		if (obj.get("Type3") instanceof Number) {
			this.setType3(((Number) obj.get("Type3")).intValue());
		}
		if (obj.get("Type4") instanceof Number) {
			this.setType4(((Number) obj.get("Type4")).intValue());
		}
		if (obj.get("Type5") instanceof Number) {
			this.setType5(((Number) obj.get("Type5")).intValue());
		}
		if (obj.get("Type6") instanceof Number) {
			this.setType6(((Number) obj.get("Type6")).intValue());
		}
		if (obj.get("Type7") instanceof Number) {
			this.setType7(((Number) obj.get("Type7")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getId() != null) {
			result.put("id",this.getId());
		}
		if (this.getStepName() != null) {
			result.put("StepName",this.getStepName());
		}
		if (this.getDeptID() != null) {
			result.put("DeptID",this.getDeptID());
		}
		if (this.getType1() != null) {
			result.put("Type1",this.getType1());
		}
		if (this.getType2() != null) {
			result.put("Type2",this.getType2());
		}
		if (this.getType3() != null) {
			result.put("Type3",this.getType3());
		}
		if (this.getType4() != null) {
			result.put("Type4",this.getType4());
		}
		if (this.getType5() != null) {
			result.put("Type5",this.getType5());
		}
		if (this.getType6() != null) {
			result.put("Type6",this.getType6());
		}
		if (this.getType7() != null) {
			result.put("Type7",this.getType7());
		}
		return result;
	}
	
	
	/**
	 * 获取id
	 * 
	 * @return
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * 设置id
	 * 
	 * @param id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	 * 获取StepName
	 * 
	 * @return
	 */
	public String getStepName() {
		return StepName;
	}

	/**
	 * 设置StepName
	 * 
	 * @param StepName
	 */
	public void setStepName(String StepName) {
		this.StepName = StepName;
	}
	
	/**
	 * 获取DeptID
	 * 
	 * @return
	 */
	public Integer getDeptID() {
		return DeptID;
	}

	/**
	 * 设置DeptID
	 * 
	 * @param DeptID
	 */
	public void setDeptID(Integer DeptID) {
		this.DeptID = DeptID;
	}
	
	/**
	 * 获取Type1
	 * 
	 * @return
	 */
	public Integer getType1() {
		return Type1;
	}

	/**
	 * 设置Type1
	 * 
	 * @param Type1
	 */
	public void setType1(Integer Type1) {
		this.Type1 = Type1;
	}
	
	/**
	 * 获取Type2
	 * 
	 * @return
	 */
	public Integer getType2() {
		return Type2;
	}

	/**
	 * 设置Type2
	 * 
	 * @param Type2
	 */
	public void setType2(Integer Type2) {
		this.Type2 = Type2;
	}
	
	/**
	 * 获取Type3
	 * 
	 * @return
	 */
	public Integer getType3() {
		return Type3;
	}

	/**
	 * 设置Type3
	 * 
	 * @param Type3
	 */
	public void setType3(Integer Type3) {
		this.Type3 = Type3;
	}
	
	/**
	 * 获取Type4
	 * 
	 * @return
	 */
	public Integer getType4() {
		return Type4;
	}

	/**
	 * 设置Type4
	 * 
	 * @param Type4
	 */
	public void setType4(Integer Type4) {
		this.Type4 = Type4;
	}
	
	/**
	 * 获取Type5
	 * 
	 * @return
	 */
	public Integer getType5() {
		return Type5;
	}

	/**
	 * 设置Type5
	 * 
	 * @param Type5
	 */
	public void setType5(Integer Type5) {
		this.Type5 = Type5;
	}
	
	/**
	 * 获取Type6
	 * 
	 * @return
	 */
	public Integer getType6() {
		return Type6;
	}

	/**
	 * 设置Type6
	 * 
	 * @param Type6
	 */
	public void setType6(Integer Type6) {
		this.Type6 = Type6;
	}
	
	/**
	 * 获取Type7
	 * 
	 * @return
	 */
	public Integer getType7() {
		return Type7;
	}

	/**
	 * 设置Type7
	 * 
	 * @param Type7
	 */
	public void setType7(Integer Type7) {
		this.Type7 = Type7;
	}

	@Override
	public String toString() {
		return "BeFlow [id=" + id + " , StepName=" + StepName + " , DeptID=" + DeptID + " , Type1=" + Type1 + " , Type2=" + Type2 + " , Type3=" + Type3 + " , Type4=" + Type4 + " , Type5=" + Type5 + " , Type6=" + Type6 + " , Type7=" + Type7 + "  ]";
	
	}
	
	
}
